package controllers;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import entities.Page;

import models.PageModel;


public class TermsServlet extends HttpServlet{
	public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws IOException, ServletException {
		
		PageModel pageModel = PageModel.getInstance();
		Page terms = pageModel.getTerms();
		
		request.setAttribute("terms", terms);
		try {
			request.getRequestDispatcher("/pages/terms.jsp").forward(request, response);
		} catch (ServletException e) {
			//e.printStackTrace();
		}
	}
}
